<template>
  <div>
    <van-tabbar  >
      <van-tabbar-item icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" @click="fun1">分类</van-tabbar-item>
      <van-tabbar-item icon="browsing-history-o" @click="fun2">发现</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item icon="user-o" @click="fun4">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import Vue from "vue";
import { Tabbar, TabbarItem } from "vant";
Vue.use(Tabbar);
Vue.use(TabbarItem);
import { Icon } from 'vant';
Vue.use(Icon);
export default {
  data() {
    return {
  
    }
  },
  methods:{
    fun4(){
      this.$router.push({path:'/my'}).catch(err=>{});
    },
    fun2(){
      this.$router.push({path:'/action'}).catch(err=>{});
    },
    fun1(){
      this.$router.push({path:'/classification'}).catch(err=>{});
    }
  }
};
</script>

<style>
</style>